package auth.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import auth.service.impl.GoodsServiceFeignClientFallback;
import common.model.result.Result;

@Service
@FeignClient(name = "goods-server",fallback = GoodsServiceFeignClientFallback.class)
public interface GoodsServiceFeignClient {
    //获取所有商品
    @GetMapping("/goods/jiang/list")
    public Result getAllGoods();
}
